#!/bin/sh

# List the contents of all tables in a sqlite3 database

for f in `sqlite3 "$1" .tables`; do
  echo ==== $f
  sqlite3 -line "$1" "SELECT * FROM $f"
done | less
